/**
 * ERP价目表
 */

import request from '@/utils/request'

/**
 * 获取ERP价目表列表
 * @param {*} params 
 */
export function settingPrices(params = {}) {
  // console.log('param=', params);
  return request({
    url: '/basic/data/price/list/setting',
    method: 'get',
    params: params
  })
}

/**
 * 价目表下拉-智科
 * @param {*} params 
 */
export function priceListHelper(params = {}) {
  return request({
    url: '/basic/data/price/list/helper',
    method: 'get',
    params: params
  })
}

/**
 * 价目表下拉-客户
 * @param {*} params 
 */
export function priceListCustomerHelper(params = {}) {
  return request({
    url: '/basic/data/price/list/customerHelper',
    method: 'get',
    params: params
  })
}

/**
 * 获取ERP价目表列表 分页
 * @param {*} params 
 */
export function settingPricePages(params = {}) {
  return request({
    url: '/basic/data/price/page',
    method: 'get',
    params: params
  })
}

/**
 * 根据价目表ID修改对应的单据类型
 * @param {*} params 
 * @returns 
 */
export function settingPricesUpdate(params = {}) {
  return request({
    url: '/basic/data/price/update',
    method: 'put',
    data: params
  })
}

/**
 * 根据价目表ID更新价目表可用状态
 * @param {*} params 
 */
export function settingPriceStatus(params = {}) {
  return request({
    url: '/basic/data/price/setting/update',
    method: 'put',
    data: params
  })
}

/**
 * 查询业务员信息列表
 * @param {*} params 
 */
export function getUserInfoList(params = {}) {
  return request({
    url: '/basic/data/price/getUserInfoList',
    method: 'get',
    params: params
  })
}